<table width="100%">
<tr bgcolor="#00FFFF">
<td>食材名称</td>
<td>销售价格</td>
<td>搭配规则</td>
<td>搭配难度系数</td>
<td>材料说明</td>
<td>素材图片</td>
<td>是否上架</td>
<td>销售数量</td>
<td>操作</td>
</tr>
<?php foreach ($food_list as $fl): ?>
<tr>
<td><?php echo $fl['sName']; ?></td>
<td><?php echo $fl['nPrice']; ?></td>
<td><?php echo $fl['sMatch']; ?></td>
<td><?php echo $fl['nLevel']; ?></td>
<td><?php echo $fl['sDescript']; ?></td>
<td><img src="<?php echo FOOD_URL.$fl['sUrl']; ?>" border="0" width="100" height="100" /></td>
<td>
<?php if($fl['nOnShelf'] == 1): ?>上架
<?php elseif ($fl['nOnShelf'] == 0): ?>下架
<?php endif; ?>
</td>
<td><?php echo $fl['nSells']; ?></td>
<td><a href="food.php?act=edit&id=<?php echo $fl['id']; ?>">编辑</a> | <a href="food.php?act=delete&id=<?php echo $fl['id']; ?>">删除</a></td>
</tr>
<?php endforeach; ?>
</table>